package day08.synch02._02;

/**
 * <>
 * <详细描述>
 *
 * @Author WANG.SONG.
 * @Date 2019/3/5 0005 22:40
 * @see
 */
public class ThreadB01 extends Thread{

    private Task01 task;

    public ThreadB01(Task01 task){
        this.task = task;
    }
    @Override
    public void run() {
        super.run();
        CommonUtils01.begin2 = System.currentTimeMillis();
        task.doLongTime();
        CommonUtils01.end2 = System.currentTimeMillis();
    }
}
